package com.turtle.learning.contents.dto;

import com.turtle.learning.contents.enums.AuditStatusEnums;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 文章审核dto
 *
 * @author turtle
 * @since: 2020-04-29
 */

@Data
@AllArgsConstructor
public class AuditDTO {

    @ApiModelProperty(value = "审核状态 NOT_YET: 待审核 PASSED:审核通过 REJECTED:审核不通过", required = true)
    @NotNull(message = "审核状态不能为空")
    private AuditStatusEnums auditStatusEnum;

    @ApiModelProperty(value = "审核原因")
    private String reason;
}
